package com.feng.cloud.common.annotation;

import com.feng.cloud.common.selector.EnhanceDelayMessageSelector;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * @ClassName EnableRocketMq
 * @Description TODO
 * @Author Better Feng
 * @Date 2021/1/30 16:35
 **/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(EnhanceDelayMessageSelector.class)
public @interface EnableRocketMq {


    /**
     * 是否对增强延迟消息
     * @return boolean
     */
    boolean enhanceDelayMessage() default false;

}
